Learn R Programming

Matrix (version 0.95-7)

[-methods: Methods for "[": Extraction or Subsetting in Package 'Matrix'.

Description

Methods for "[", i.e., extraction or subsetting in package Matrix.

Arguments

See Also

Extract about the standard extraction.

Examples

Run this code
str(m <- Matrix(round(rnorm(7*4),2), nrow = 7))
## wrongly looses class: m[]; error: m[1,1]

if(FALSE) {## still all fail
   ch[2,3]
   ch[1,]
   ch[,2]
   pm[2,3]
   pm[1,]
   pm[,2]
 }

Run the code above in your browser using DataLab